import request from '@/utils/request'
var api = '/api'
if(process.env.NODE_ENV == 'production'){
  api = ''
} 
export function querySubAccount(params) {
  return request({
    url: `${api}/platform/account/mng/querySubAccount`,
    method: 'post',
    params
  })
}
export function createAccount(params) {
  return request({
    url: `${api}/platform/account/mng/createAccount`,
    method: 'post',
    data:params
  })
}
export function updateAccount(params) {
  return request({
    url: `${api}/platform/account/mng/updateAccount`,
    method: 'post',
    data:params
  })
}
export function getAccount(params) {
  return request({
    url: `${api}/platform/account/mng/getAccount`,
    method: 'get',
    params
  })
}
